home *** CD-ROM | disk | FTP | other *** search
- On 04-May-97, Andrew Hawkins wrote:
-
-
-
- >I need some help on the following.
-
- >A) Eric gave me some stuff on reading the second joystick fire
- >button but it`s written for AmosPro & mines using 1.36. What are
- >some Peeks to find the second button being pressed. Please note
- >I`ve already used Peek(14675990) but that just returns 5 no
- >matter what I press.
-
-
- Really?? I always use $DFF016 to read the second firebutton like
- this:
-
- FB2=(Peek($DFF016) And 64) Xor 64
-
- If the 2nd firebutton is NOT pressed then FB2 will equal 0
- If the 2nd firebutton IS PRESSED then FB2 will equal 64
-
-
-
- This is how I'm reading the 2nd firebutton in StarStrike2000 as
- well so, you mean that you actually can't drop the bombs on your
- system?
-
-
- The above method SHOULD work fine. However, try adding this
- line JUST BEFORE that one...
-
- Doke $DFF034,$C000 which should "activate" pin 9 so you will
- be able to detect the 2nd firebutton.
-
-
-
-
- Hope this helps!!
-
-
-
- Garfield
-
-
-
-